/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.mam.device.application;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.foreveross.bsl.mam.device.application.vo.DeviceSceneVO;

/**
 * @description
 *
 * @author tanzhixiong
 * @version v1.0
 *
 * @2013-7-8
 *
 */
@Path(value = "/devicesscene")
public interface DeviceSceneApplication {

	@POST
	@Path("/add")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public DeviceSceneVO saveEntity(DeviceSceneVO entity);

	@PUT
	@Path("/update/{id}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public DeviceSceneVO updateEntity(@PathParam("id") String id, DeviceSceneVO entity);

	@DELETE
	@Path("/delete/{id}")
	public void deleteEntity(@PathParam("id") String id);
	
	@GET
	@Path("/get/{id}")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public DeviceSceneVO getEntity(@PathParam("id") String id);
	
	
	@GET
	@Path("/all")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public List<DeviceSceneVO> findAll();

	@POST
	@Path("/pages")
	@Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
	public Page<DeviceSceneVO> findByPageable(Pageable pageable);
	
	
}
